SELECT
<#switch (select__object__id!)>
	<#case "id">
T.ID AS id
	<#break>
	<#case "endDaTi">
T.END_DA_TI AS endDaTi
	<#break>
	<#case "resourceId">
T.RESOURCE_ID AS resourceId
	<#break>
	<#case "validateFalseId">
T.VALIDATE_FALSE_ID AS validateFalseId
	<#break>
	<#case "validateRuId">
T.VALIDATE_RU_ID AS validateRuId
	<#break>
	<#case "validateTrueId">
T.VALIDATE_TRUE_ID AS validateTrueId
	<#break>
	<#case "orderNum">
T.ORDER_NUM AS orderNum
	<#break>
	<#case "beginDaTi">
T.BEGIN_DA_TI AS beginDaTi
	<#break>
	<#default>
COUNT(1) AS COUNT_
</#switch>
FROM FD_RESOURCE_VA_RU_TR_MO T
<#include "whereResourceVaRuTrMoBy1.ftl">